import request from '@/utils/request'

class devTypeAttrService {

  //设备分类列表带分页条件
  select(params) {
    return request({
      url: '/category/select',
      method: 'post',
      data: params
    })
  }

  //设备分类列表所有
  list(params) {
    return request({
      url: '/category/list',
      method: 'get',
      data: params
    })
  }
  //设备分类添加
  add(params) {
    return request({
      url: '/category/add',
      method: 'post',
      data: params
    })
  }
  //设备分类获取根据id
  get(params) {
    return request({
      url: '/category/get',
      method: 'get',
      data: params
    })
  }
  //设备分类更新保存
  update(params) {
    return request({
      url: '/category/update',
      method: 'POST',
      data: params
    })
  }
  //设备分类删除
  del(params) {
    return request({
      url: '/category/del',
      method: 'post',
      data: params
    })
  }

}

export default new devTypeAttrService()